<!--- Setup the values for the GOTD. First get a count of the games in the system. --->
<cfquery name="qRndGameCount" datasource="sixdegreesimprov" cachedwithin="#createTimeSpan(1, 0, 0, 0)#">
	SELECT COUNT(game_id) AS total
	FROM igdb_games
</cfquery>
<cfset startRangeID = 1 />
<cfset endRangeID = qRndGameCount.total />
<!--- Call Randomize to seed the random number generator, then get the random ID. --->
<cfset r = randomize(second(now()), "SHA1PRNG")>
<cfset rndgame_id = randRange(startRangeID, endRangeID, "SHA1PRNG") />
<!--- Now relocate the user to the gameInfo page with the ID --->
<cflocation url="gameInfo.cfm?game_id=#rndgame_id#" />